import path from 'path'

const DB_URL = 'mongodb://test:123456@148.70.194.250:27017/testdb'
const REDIS_HOST = '148.70.194.250'
const REDIS_PORT = 15002
const REDIS_AUTH = 123456
const JWT_SECRET = '123jkaslzaxjfdciuo92qj2'
const BaseUrl = process.env.NODE_ENV === 'production' ? 'http://148.70.194.250:11005' : 'http://localhost:8080' // 前端地址
const UploadPath = process.env.NODE_ENV === 'production' ? '/app/public' : path.join(path.resolve(__dirname), '../../public')
const upPath = process.env.NODE_ENV === 'production' ? 'http://148.70.194.250:12005' : ''
export default {
  DB_URL,
  REDIS_HOST,
  REDIS_PORT,
  REDIS_AUTH,
  JWT_SECRET,
  BaseUrl,
  UploadPath,
  upPath
}
